package com.cup.bddm.api.mapper;

import java.util.List;
import java.util.Map;

import com.cup.bddm.api.entity.StreetEntity;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * ----统一通用----<br>
 * save 保存<br>
 * pageBy.. 分页查询List<br>
 * oneBy.. 查询一条 SQL带limit 1<br>
 * updateBy.. 根据..更新<br>
 * deleteBy.. 根据..删除<br>
 * ----其他----<br>
 * listBy.. 不分页查询List<br>
 * findBy..<br>
 * getBy..<br>
 */
public interface StreetEntityMapper {

	int save(StreetEntity record);

	List<StreetEntity> pageByPms(Map<String, Object> pms, PageBounds pager);

	StreetEntity oneById(Map<String, Object> pms);

	int updateById(StreetEntity record);

	int deleteById(Integer id);

	List<StreetEntity> listByIns(String cup_branch_ins_id_cd);

	String getMaxStreetCd(String biz_street_cd);

	StreetEntity oneByStreetCd(Map<String, Object> pms);

	List<StreetEntity> listByStreetCd(Map<String, Object> pms);

	List<StreetEntity> matchByNm(Map<String, Object> pms);
}